home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / What's New? / Development Kits / Mac OS / USB DDK 1.4.6f4 / Examples / USBSampleStorageDriver / StorageDeviceConfiguration.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-25  |  1.3 KB  |  44 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StorageDeviceConfiguration.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 2000 by Apple Computer, Inc., all rights reserved.
  9.  
  10. */
  11.  
  12.  
  13. #ifndef __SAMPLESTORAGEDEVICEID__
  14. #define __SAMPLESTORAGEDEVICEID__
  15.  
  16. #include <USB.h>
  17.  
  18. // The values for the device that this driver is being built for
  19. // need to be enetered here before the driver will build
  20. enum
  21. {
  22.     kDriverVendorID         = Your vendor number,        // USB Vendor ID
  23.     kDriverProductID    = Your device number,        // USB Product ID.
  24.     kDriverClassID        = kUSBMassStorageClass, 
  25.     kDriverSubclassID    = Your device subclass
  26. };
  27. // UnitTable name of this driver
  28. #define kDriverNameString    "\pSampleStorageDriver"
  29.  
  30. // The flag to indicate if this device is manual ejectable.
  31. // This flag only needs to be set if the device does not respond
  32. // with an error to the PreventMediaRemoval command or if the device
  33. // does not respond with an error to the eject command.
  34. #define kDeviceIsManualEject    false
  35.  
  36. // This only needs to be set if the device has less than 6 bytes
  37. // of inquiry data. 
  38. #define kDeviceMaxInquiryCount    255
  39.  
  40. // This needs to be set if the device is subclass other than 4 (UFI)
  41. // that supports floppy disk media
  42. #define kDriveSupportsFloppyDisk false
  43.  
  44. #endif /* __SAMPLESTORAGEDEVICEID__ */